home *** CD-ROM | disk | FTP | other *** search
- Path: news.drexel.edu!dunx1!st918h5w
- From: st918h5w@dunx1.ocs.drexel.edu (Jonathan Juniman)
- Newsgroups: comp.lang.c++
- Subject: overloaded operator question
- Date: 18 Jan 1996 22:48:01 GMT
- Organization: Drexel University
- Message-ID: <4dmin1$160@noc2.drexel.edu>
- NNTP-Posting-Host: dunx1.ocs.drexel.edu
- X-Newsreader: TIN [version 1.2 PL2]
-
- What is wrong with the following declaration:
-
- MATRIX.H
- class Matrix
- {
- public:
- // several other functions here...
- Matrix Matrix::operator *(Matrix&, Matrix&);
- }
-
- My compiler (Microsoft Visual C++ v1.5) complains that there are too
- many arguments. How can there be too many arguments? * is a binary
- operator! My intention is to perform matrix multiplication by
- typing a = b * c, where a, b and c are objects of type Matrix.
-
- Any help would be appreciated. Please reply by e-mail. Thanks, -Jon.
-
-